﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/static/include/topLess.jsp"%>
<table>
	<tbody>

		<tr>
			<th><img src="${ctx}/static/images/pages/cen/rig/ico_01.png"
				align="absmiddle">&nbsp;单位选择</th>
		</tr>
		<tr class="tab_grey">
			<td>
				<form name="searchForm" action="" method="post">
				<input type="hidden" name="p" value="1" />
					<span class="tab_text"> 单位名称： </span> <input id="unitName"
						type="text" name="unitName" value="${param['unitName']}" size="20"
						class="tab_textbut" /> 
					<a class="tab_but" href="#"
						onclick="searchForm.action='select';searchForm.submit();return false;">查询</a>
				</form>
				
				<script>
	
		$("#unitName").val("${param['unitName']}");
		
	
		</script> <iframe name="upload" width="0" height="0" frameborder="0"></iframe>
			</td>
		</tr>

	</tbody>
</table>



<br />
<c:if test="${empty obj.operationResult}">
	<b>没有符合条件的记录。</b>
</c:if>
<c:if test="${not empty obj.operationResult}">

	<table id="listTable">
	<tbody>
		<tr>
				<th width="80%">单位名称</th>
				
				<th>操作</th>
				
			
		</tr>
		<c:forEach var="oneRow" items="${obj.operationResult}">

			<tr>
				<td align="left" class="tab_td_rig">${oneRow.unitName}</td>
				
				<td align="left" ><a href="#"
					onclick="chooseUnit('${oneRow.id}','${oneRow.unitName}','${oneRow.unitInstitutionCode}','${oneRow.fr}','${oneRow.areaName}','${oneRow.roleName}','${oneRow.registAdd}')">
					<img src="${baseURL}/static/images/tab/ico_01.png" width="16" height="16" border="0" align="absmiddle" />选择</a></td>
			</tr>
		</c:forEach>
		<tr class="tab_grey">
				<td colspan="7" align="center" valign="middle" class="tab_white">
				<div class="pagination"> 
					<%@ include file="../../include/listpage2.jsp"%>
				</div>
				<div class="clear"></div>
				</td>
			</tr>	
		
		</tbody>
	</table>
</c:if>
<script>
//查找直属单位
function chooseUnit(id,unitName,unitInstitutionCode,fr,areaName,roleName,registAdd){
	
     closeWin({"id":id,"unitName":unitName,"unitInstitutionCode":unitInstitutionCode,"fr":fr,"areaName":areaName,"roleName":roleName,"registAdd":registAdd});
}
</script>
<%@ include file="/static/include/bottom.jsp"%>
